package com.qh.book.utils;

import java.util.regex.Pattern;

import org.springframework.util.StringUtils;

public class StrUtils {

	/**
	 * 
	 * @param str
	 * @return 是否为纯数字字符串
	 * @author qihong
	 */
	public static boolean isInteger(String str) {  
        Pattern pattern = Pattern.compile("^[-\\+]?[\\d]*$");  
        return pattern.matcher(str).matches();  
  }
	
	
	public static boolean isContainsWhitespace(String str){
		return StringUtils.containsWhitespace(str);
	}
	
	public static void main(String[] args) {
		System.out.println(isContainsWhitespace("11%11"));
	}
}
